//
//  AboutViewController.m
//  SmartWatch
//
//  Created by zwj on 2022/11/22.
//

#import "AboutViewController.h"

@interface AboutViewController ()

@end

@implementation AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    self.view.backgroundColor = BACKGROUNDCOLOR;
    self.title = @"关于";
    
}

- (void)initSubviews {
    [super initSubviews];
    
    MyLinearLayout *root = [MyLinearLayout linearLayoutWithOrientation:MyOrientation_Vert];
    root.myHorzMargin = 15;
    root.padding = UIEdgeInsetsMake(15,15,15,15);
    root.myTop = 15 + NavigationContentTop;
    root.subviewVSpace = 20;
    root.backgroundColor = COLOR_4;
    root.myHeight = kAutoHeight;
    ViewCorner(root, 15);
    [self.view addSubview:root];
    
    MyLinearLayout *top = [MyLinearLayout linearLayoutWithOrientation:MyOrientation_Horz];
    top.gravity = MyGravity_Vert_Center | MyGravity_Horz_Between;
    top.myHorzMargin = 0;
    top.myHeight = kAutoHeight;
    [root addSubview:top];
    
    {
        UILabel *name = [UILabel createLabelText:@"版本号" font:UIFontMake(14) textColor:COLOR1515];
        name.mySize = kAutoSize;
        [top addSubview:name];
        
        UILabel *version = [UILabel createLabelText:@"version 1.0.0" font:UIFontMake(14) textColor:COLOR1515];
        version.mySize = kAutoSize;
        [top addSubview:version];
    }
    
    MyLinearLayout *bottom = [MyLinearLayout linearLayoutWithOrientation:MyOrientation_Horz];
    bottom.gravity = MyGravity_Vert_Center | MyGravity_Horz_Between;
    bottom.myHorzMargin = 0;
    bottom.myHeight = kAutoHeight;
    [root addSubview:bottom];
    
    {
        UILabel *name = [UILabel createLabelText:@"客服电话" font:UIFontMake(14) textColor:COLOR1515];
        name.mySize = kAutoSize;
        [bottom addSubview:name];
        
        UILabel *version = [UILabel createLabelText:@"400-622-8698" font:UIFontMake(16) textColor:THEME_COLOR];
        version.mySize = kAutoSize;
        [bottom addSubview:version];
    }
}

@end
